﻿@model List<_8_20_Homework.Models.Student>
@{
    ViewBag.Title = "List";
}

<table class="table table-hover">
    <tr>
        <th>Photo</th>
        <th>Name</th>
        <th>Grade</th>
        <th>Teacher</th>
        <th>Detail View</th>
    </tr>
@foreach (var stu in Model)
{
    <tr>
        <td style="width:50px;height:50px"><img class="img-responsive"src="@stu.Image"/></td>
        <td>@stu.Name</td>
        <td>@stu.Grade</td>
        <td>@stu.Teacher</td>
        <td>@Html.ActionLink("Detail", "Detail" , "Home" ,@stu.ID)</td>
    </tr>
}

</table>

